/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 abstract_adv_object.cpp

	$Header: /heroes4/abstract_adv_object.cpp $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "abstract_adv_object.h"

#include "player_color.h"

/////////////////////////////////////////////////////////////////////////////
// t_abstract_adv_object members

/////////////////////////////////////////////////////////////////////////////
t_abstract_adv_object::~t_abstract_adv_object()
{
}

/////////////////////////////////////////////////////////////////////////////
void t_abstract_adv_object::draw_shadow_to(
	t_uint32				current_time, 
	t_abstract_bitmap16 &	dest, 
	t_screen_point const &	dest_point ) const
{
	draw_shadow_to( current_time, get_shadow_rect( current_time ), dest, dest_point );
}

/////////////////////////////////////////////////////////////////////////////
void t_abstract_adv_object::draw_subimage_to(
	int						subimage_num,
	t_uint32				current_time, 
	t_abstract_bitmap16 &	dest, 
	t_screen_point const &	dest_point ) const
{
	draw_subimage_to( subimage_num, current_time, get_subimage_rect( subimage_num, current_time ), dest, dest_point );
}

/////////////////////////////////////////////////////////////////////////////
void t_abstract_adv_object::draw_to(
	t_uint32				current_time, 
	t_abstract_bitmap16 &	dest, 
	t_screen_point const &	dest_point ) const
{
	draw_to( current_time, get_rect( current_time ), dest, dest_point );
}

/////////////////////////////////////////////////////////////////////////////
t_player_color t_abstract_adv_object::get_player_color() const
{
	return k_player_none;
}

/////////////////////////////////////////////////////////////////////////////
bool t_abstract_adv_object::is_decorative() const
{
	return false;
}

/////////////////////////////////////////////////////////////////////////////
bool t_abstract_adv_object::uses_bridge_heights() const
{
	return false;
}

/////////////////////////////////////////////////////////////////////////////
bool t_abstract_adv_object::visible_through_obstacles( int subimage_num ) const
{
	return false;
}

/////////////////////////////////////////////////////////////////////////////
bool t_abstract_adv_object::is_visible_to( int team_num ) const
{
	return true;
}

bool t_abstract_adv_object::can_be_hidden() const
{
	return false;
}
